From: Daniel Carl <danielcarl@gmx.de>
Date: Fri, 7 Jun 2019 22:34:14 +0000 (+0200)
Subject: Rename option ephemeral to incognito #562.
X-Git-Url: https://git.owens.tech/assets/lich_lifts_title_slice.png%20%22Lich%20Lifts%22/assets/lich_lifts_title_slice.png%20%22Lich%20Lifts%22/git?a=commitdiff_plain;h=1535933b0d170906ac4ab4a484dbb7cfd1bc03a3;p=vimb.git

Rename option ephemeral to incognito #562.
---

diff --git a/src/main.c b/src/main.c
index 00d12cf..15ca9f9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1802,7 +1802,7 @@ static void vimb_setup(void)
     }
 
     /* Setup those files that are use multiple time during runtime */
-    if (!vb.ephemeral) {
+    if (!vb.incognito) {
         vb.files[FILES_CLOSED] = g_build_filename(path, "closed", NULL);
         vb.files[FILES_COOKIE] = g_build_filename(path, "cookies.db", NULL);
     }
@@ -1811,9 +1811,9 @@ static void vimb_setup(void)
     vb.files[FILES_SCRIPT]     = g_build_filename(path, "scripts.js", NULL);
     vb.files[FILES_USER_STYLE] = g_build_filename(path, "style.css", NULL);
 
-    vb.storage[STORAGE_HISTORY]  = file_storage_new(path, "history", vb.ephemeral);
-    vb.storage[STORAGE_COMMAND]  = file_storage_new(path, "command", vb.ephemeral);
-    vb.storage[STORAGE_SEARCH]   = file_storage_new(path, "search", vb.ephemeral);
+    vb.storage[STORAGE_HISTORY]  = file_storage_new(path, "history", vb.incognito);
+    vb.storage[STORAGE_COMMAND]  = file_storage_new(path, "command", vb.incognito);
+    vb.storage[STORAGE_SEARCH]   = file_storage_new(path, "search", vb.incognito);
     g_free(path);
 
     /* Use seperate rendering processed for the webview of the clients in the
@@ -2073,8 +2073,8 @@ int main(int argc, char* argv[])
 
     GOptionEntry opts[] = {
         {"config", 'c', 0, G_OPTION_ARG_FILENAME, &vb.configfile, "Custom configuration file", NULL},
-        {"ephemeral", 'E', 0, G_OPTION_ARG_NONE, &vb.ephemeral, "Run in ephemeral mode", NULL},
         {"embed", 'e', 0, G_OPTION_ARG_STRING, &winid, "Reparents to window specified by xid", NULL},
+        {"incognito", 'i', 0, G_OPTION_ARG_NONE, &vb.incognito, "Run with user data read-only", NULL},
         {"profile", 'p', 0, G_OPTION_ARG_CALLBACK, (GOptionArgFunc*)profileOptionArgFunc, "Profile name", NULL},
         {"version", 'v', 0, G_OPTION_ARG_NONE, &ver, "Print version", NULL},
         {"no-maximize", 0, 0, G_OPTION_ARG_NONE, &vb.no_maximize, "Do no attempt to maximize window", NULL},
diff --git a/src/main.h b/src/main.h
index 616d39c..6759ca4 100644
--- a/src/main.h
+++ b/src/main.h
@@ -283,7 +283,7 @@ struct Vimb {
     } config;
     GtkCssProvider *style_provider;
     gboolean    no_maximize;
-    gboolean    ephemeral;
+    gboolean    incognito;
 };
 
 gboolean vb_download_set_destination(Client *c, WebKitDownload *download,